package pokergame;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Poker> pokers = new ArrayList<>();
        Game game = new Game();
        pokers = game.buyPokers();
        System.out.println(pokers);
        game.shuffle(pokers);
        System.out.println(pokers);
        List<Poker> hand1 = new ArrayList<>();
        List<Poker> hand2 = new ArrayList<>();
        List<Poker> hand3 = new ArrayList<>();

        List<List<Poker>> hand = new ArrayList<>();
        hand.add(hand1);
        hand.add(hand2);
        hand.add(hand3);
        System.out.println(hand1);
        System.out.println(hand2);
        System.out.println(hand3);

        List<Player> players = new ArrayList<>();
        Player player1 = new Player("王哥",hand1);
        Player player2 = new Player("来财",hand2);
        Player player3 = new Player("福贵",hand3);
        players.add(player1);
        players.add(player2);
        players.add(player3);


        game.deal(pokers,players);
        System.out.println(pokers);
        System.out.println(player1);
        System.out.println(player2);
        System.out.println(player3);



    }

}
